﻿<script type="text/mustache-template" id="AddressListTemplate">
    <div id="AddressList">
        {{>header}}
        <div class="scroll-wrapper" id="AddressListWrapper">
            <div class="scroll-inner">
            <div class='addresslist'>
                
            </div>
            <div class='addressDetail'>
                
            </div>
            <div><input type="submit" id="AddressSubmit" name="AddressSubmit" value='确认保存' class='ui-button' style='margin-bottom:10px;'/></div>
            {{>footer}}
            </div>
        </div>
    </div>
</script>

<script type="text/mustache-template" id="AddressListContentTemplate">
    <div id="hideAddressList">
        <div class='pad-6'>
            {{#addressList}}
                <ul addressid='{{Guid}}' regionCode='{{Code}}' recivename='{{NAME}}' address='{{Address}}' mobile='{{Mobile}}' postcode='{{Postalcode}}' email='{{Email}}' tel='{{Tel}}'>
                   <li>
                       <input type="radio" name="addressId" id="{{Guid}}">
                       <label for="{{Guid}}">
                       收货人：{{NAME}}<br>
                       {{Address}}<br>
                       联系电话：{{#Mobile}}{{Mobile}}{{/Mobile}}{{^Mobile}}{{Tel}}{{/Mobile}}
                       <br>邮政编码：{{Postalcode}}</label>
                   </li> 
                </ul>
            {{/addressList}}
        </div>
    </div>
</script>

<script type="text/mustache-template" id="AddressDetailContentTemplate">
    <div class='pad-6'>
        <ul>
           <li class="address_province">
                <label style='margin: 0 0 0 5px;'>省份：</label>
                <select name="address.idProvince" id="address_province">
                    
                </select>
            </li>
            <li class="address_city" style="display:none">
                <label style='margin: 0 0 0 5px;'>城市：</label>
                <select name="address.idCity" id="address_city">
                    
                </select>
            </li>
            <li class="address_area" style="display:none">
                <label style='margin: 0 0 0 5px;'>区县：</label>
                <select name="address.idArea" id="address_area">
                    
                </select>
            </li>
            <li>
                <label style='margin: 0 0 0 5px;'>地址：</label>
                <span id="consigneeShow_addressName"><label id="address_label"></label></span>
                <p style='margin-top:0px;margin-bottom:3px;'>
                    <textarea originvalue='{{address}}' class="common-input" name="address.where" id="address_where" style="width:85%;display:inline-block;">{{address}}</textarea>
                    <span style="color:red;float:none;">*</span><br>
                    <label id="where_error" style="color:red"></label>
                </p>
                <p style='margin-top:-3px;margin-bottom:3px;'>
                    <label class="extra">收货人姓名：</label><br>
                    <input originvalue='{{recivename}}' value='{{recivename}}' type="text" value="" style="width:85%;height:auto;" name="address.name" id="address_name" class="common-input" autocomplete="off">
                    <span style="color:red;float:none;">*</span><br>
                    <label id="name_error" style="color:red"></label>
                </p>
                <p style='margin-top:0px;margin-bottom:5px;'>
                    <label>手机号码：</label><br>
                    <input originvalue='{{mobile}}' value='{{mobile}}' type="text" value="" style="width:85%;height:auto;" name="address.mobile" id="address_mobile" class="common-input" autocomplete="off">
                    <span style="color:red;float:none;">*</span><br>
                    <label id="mobile_error" style="color:red"></label>
                </p>
                <p style='margin-top:0px;margin-bottom:5px;'>
                    <label>座机号码：</label><br>
                    <input originvalue='{{tel}}' value='{{tel}}' type="text" value="" style="width:85%;height:auto;" name="address.tel" id="address_tel" class="common-input" autocomplete="off">
                    <br>
                    <label id="tel_error" style="color:red"></label>
                </p>
                <p style='margin-top:0px;margin-bottom:5px;'>
                    <label>电子邮件：</label><br>
                    <input originvalue='{{email}}' value='{{email}}' type="text" value="" style="width:85%;height:auto;" name="address.email" id="address_email" class="common-input" autocomplete="off">
                    <span style="color:red;float:none;">*</span><br>
                    <label id="email_error" style="color:red"></label>
                </p>
                <p style='margin-top:0px;margin-bottom:5px;'>
                    <label>邮政编码：</label><br>
                    <input originvalue='{{postcode}}' value='{{postcode}}' type="text" value="" style="width:85%;height:auto;" name="address.zip" id="address_zip" class="common-input" autocomplete="off">
                    <br>
                    <label id="postcode_error" style="color:red"></label>
                </p>
            </li>
        </ul>
    </div>
</script>

<script type="text/mustache-template" id="CitySelectTemplate">
    {{#city}}
        {{#Checked}}
            <option id="{{ID}}" value="{{OrderID}}" parentId="{{OrderID}}" addressCode='{{Code}}' selected='selected'>{{Name}}</option>
        {{/Checked}}
        {{^Checked}}
            <option id="{{ID}}" value="{{OrderID}}" parentId="{{OrderID}}" addressCode='{{Code}}'>{{Name}}</option>
        {{/Checked}}
    {{/city}}
</script>